# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=libdvdread
pkgver=6.1.3
pkgrel=2
pkgdesc="Simple foundation for reading DVD video disks"
url="http://dvdnav.mplayerhq.hu/"
arch="all"
license="GPL-2.0-or-later"
makedepends="libdvdcss-dev"
subpackages="$pkgname-static $pkgname-dev $pkgname-doc"
source="https://download.videolan.org/pub/videolan/libdvdread/$pkgver/libdvdread-$pkgver.tar.bz2"
options="!check" # No testsuite

prepare() {
	default_prepare
	update_config_sub
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--enable-static \
		--enable-shared \
		--with-libdvdcss
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
c98055829ccbbe2bb7b5df48f6e279cf6e91ecab39a35c37081581452f7df7531c1d7b8abd641c55eeee357235b2658b31478dbc307995cffdf8c011bd0dd0bc  libdvdread-6.1.3.tar.bz2
"
